/*
 * Directivas.h
 *
 *  Created on: 23/08/2011
 *      Author: guido
 */

#ifndef DIRECTIVAS_H_
#define DIRECTIVAS_H_

extern const char include[10];
extern const int longInclude;
extern const char define[9];
extern const int longDefine;
extern const char ifndef[9];
extern const int longIfndef;
extern const char ifdef[8];
extern const int longIfdef;
extern const char endif[8];
extern const int longEndif;
extern const char elseD[7];
extern const int longElse;

int hayDirectivaElse(char* buffer) {
	if (strncmp(elseD, buffer, longElse) == 0)
		return 1;
	else
		return 0;
}

int hayDirectivaEndif(char* buffer) {
	if (strncmp(endif, buffer, longEndif) == 0)
		return 1;
	else
		return 0;
}

int hayDirectivaIfndef(char* buffer) {
	if (strncmp(ifndef, buffer, longIfndef) == 0)
		return 1;
	else
		return 0;
}

int hayDirectivaIfdef(char* buffer) {
	if (strncmp(ifdef, buffer, longIfdef) == 0)
		return 1;
	else
		return 0;
}

int hayDirectivaInclude(char* buffer) {
	if (strncmp(include, buffer, longInclude) == 0)
		return 1;
	else
		return 0;
}

int hayDirectivaDefine(char* buffer) {
	if (strncmp(define, buffer, longDefine) == 0)
		return 1;
	else
		return 0;
}



#endif /* DIRECTIVAS_H_ */
